'''
Created on 2011-3-13

@author: madlee
'''
import wx

try:
    from agw import ribbon
except ImportError: # if it's not there locally, try the wxPython lib.
    from wx.lib.agw import ribbon

from kuai.kan.resource import txt, img

class ControlPanel(ribbon.RibbonBar):
    def __init__(self, parent, id, *args, **kwargs):
        ribbon.RibbonBar.__init__(self, parent, id, *args, **kwargs)
        self.molecule = ribbon.RibbonPage(self, wx.ID_ANY, txt.Molecule, wx.NullBitmap)
        ribbon.RibbonPanel(self.molecule, wx.ID_ANY, txt.Edit, wx.NullBitmap, wx.DefaultPosition,
                                       wx.DefaultSize, agwStyle=ribbon.RIBBON_PANEL_NO_AUTO_MINIMISE)
        self.builder = ribbon.RibbonPage(self, wx.ID_ANY, txt.Builder, wx.NullBitmap)
        self.forcefield = ribbon.RibbonPage(self, wx.ID_ANY, txt.ForceField, wx.NullBitmap)
        self.simulation = ribbon.RibbonPage(self, wx.ID_ANY, txt.Simulation, wx.NullBitmap)
        self.database = ribbon.RibbonPage(self, wx.ID_ANY, txt.Database, wx.NullBitmap)
        self.help = ribbon.RibbonPage(self, wx.ID_ANY, txt.Help, wx.NullBitmap)
        self.Realize()

